package com.guli.vod.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName ConstantPropertiesUtil
 * @Description TODO
 * @Author YinLiangTao Email:1517535831@qq.com
 * @Date 2022/4/7 15:52
 * @Version 1.0
 */
@Data
@ConfigurationProperties(prefix = "aliyun.vod.file")
@Configuration
public class ConstantPropertiesUtil {
    public static String keyid;
    public static String keysecret;
    //使用@ConfigurationProperties set方法不能是statis set方法可以接受到配置文件的值并注入
    public  void setKeyid(String keyid){
        ConstantPropertiesUtil.keyid = keyid;
    }
    public void setKeysecret(String keysecret){
        ConstantPropertiesUtil.keysecret = keysecret;
    }

    public static String getKeyid(){
        return keyid;
    }
    public static String getKeysecret(){
        return keysecret;
    }

}
